package org.example.dev.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.dev.pojo.ImageGeneration;

@Mapper
public interface ImageGenerationMapper extends BaseMapper<ImageGeneration> {

    @Select("select * from imagegeneration where generation_id = #{id}")
    ImageGeneration selectById();

    @Delete("delete from imagegeneration where generation_id = #{id}")
    int deleteById(String id);
}
